import 'package:equatable/equatable.dart';
import 'package:backend.core/core/domain/entities/web/web_money_amount.dart';
import 'package:backend.core/core/domain/entities/web/web_purchase_item.dart';

class WebOneTimePurchaseItem extends Equatable implements WebPurchaseItem {
  const WebOneTimePurchaseItem({
    required this.sku,
    required this.price,
    required this.title,
    required this.legacy,
  });

  @override
  final String sku;

  @override
  final WebMoneyAmount price;

  @override
  final String title;

  @override
  final bool legacy;

  @override
  List<Object?> get props {
    return [
      sku,
      price,
      title,
      legacy,
    ];
  }
}
